﻿using Nest;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ElasticSearchDemo.Models
{
    [ElasticsearchType(RelationName="geo2",IdProperty ="Id")]
    public class Geo2
    {
        [Number(NumberType.Long,Name ="id")]
        public long Id { get; set; }

        [Keyword(Name="name")]
        public string Name { get; set; }

        [GeoPoint(Name="location")]
        public GeoLocation Location { get; set; }
    }
}
